import React, { Component } from 'react'
import Logined from './logined'
import Login from './login'
interface IProps{
    user:{
        islogin:boolean,
        getToken:string
    }
}

 class My extends Component<IProps>{
    static defaultProps = {
        user:{
            islogin:true,
            getToken:"niadbhbabasbdqwbdhdv"
        }
    }
    render() {
        let {islogin} =  this.props.user
        return (
            <div>
               {
                   islogin?<Logined/>:<Login/>
               }
            </div>
        )
    }
}

export default My
